package com.jerry.chat;

import com.jerry.chat.netty.NettyServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@SpringBootApplication
@MapperScan("com.jerry.chat.dao")
@Configuration
public class Server {
    public static void main(String[] args) {
        var context = SpringApplication.run(Server.class, args);
        context.getBean(NettyServer.class).start();
    }
}